This example composer.json file adds the Wpackagist
repository and includes the latest version of Akismet (installed as
a must-use plugin), at least version 7.0.2 of Wordpress SEO, and the latest
Hueman theme along with the Amazon Web Services SDK from the main
Packagist repository.
The old vendor prefix wpackagist is now
removed in favour of
wpackagist-plugin.
Why use Composer?
“Composer is a tool for dependency management in PHP. It
allows you to declare the dependent libraries your project needs
and it will install them in your project for you.”
— getcomposer.org
Avoid committing plugins and themes into source control.
Avoid having to use git submodules.
Manage WordPress® and non-WordPress® project libraries with the
same tools.
Could eventually be used to manage dependencies between
plugins.
How does the repository work?
Scans the WordPress® Subversion repository every hour for plugins and themes. Search and click to make any newer versions available.
Fetches the tags for each updated package and maps
those to versions.
For plugins, adds trunk as a dev version.
Rebuilds the composer package JSON files.
Known issues
Requires Composer 1.0.0-alpha7 or more recent
Version strings which Composer cannot parse are ignored. All
plugins have at least the trunk build available.
Themes do not have a trunk version. It is recommended to use
"*" as the required version.
Even when packages are present on SVN, they won’t be available
if they are not published on wordpress.org.
Try searching for your plugin before reporting a
bug.
You can also check for open issues.
WordPress® Core
See
fancyguy/webroot-installer or
roots/wordpress for installing
WordPress® itself using Composer.
Contribute or get support
Please visit our GitHub page.
Follow @wpackagist
An Outlandish experiment.
The WordPress® trademark is the intellectual property of the WordPress Foundation. Uses of the WordPress®
name in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation.
WPackagist is not endorsed or owned by, or affiliated with, the WordPress Foundation.